﻿<?php
include "../templates/db/db.php";

if($_SESSION['username']){
   include "includes/header.php";
   include "includes/container.php";
   include "includes/footer.php";
} else {
	?>
	<script type='text/javascript'>
		alert('Трябва да се регистрирате/впишете в системата, за да можете да използвате форума');
	</script>
	<meta http-equiv="refresh" content="0;url=../index.php">
	<?php
}
?>